package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class SchoolworkExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SchoolworkExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSchoolworkidIsNull() {
            addCriterion("schoolworkId is null");
            return (Criteria) this;
        }

        public Criteria andSchoolworkidIsNotNull() {
            addCriterion("schoolworkId is not null");
            return (Criteria) this;
        }

        public Criteria andSchoolworkidEqualTo(Integer value) {
            addCriterion("schoolworkId =", value, "schoolworkid");
            return (Criteria) this;
        }

        public Criteria andSchoolworkidNotEqualTo(Integer value) {
            addCriterion("schoolworkId <>", value, "schoolworkid");
            return (Criteria) this;
        }

        public Criteria andSchoolworkidGreaterThan(Integer value) {
            addCriterion("schoolworkId >", value, "schoolworkid");
            return (Criteria) this;
        }

        public Criteria andSchoolworkidGreaterThanOrEqualTo(Integer value) {
            addCriterion("schoolworkId >=", value, "schoolworkid");
            return (Criteria) this;
        }

        public Criteria andSchoolworkidLessThan(Integer value) {
            addCriterion("schoolworkId <", value, "schoolworkid");
            return (Criteria) this;
        }

        public Criteria andSchoolworkidLessThanOrEqualTo(Integer value) {
            addCriterion("schoolworkId <=", value, "schoolworkid");
            return (Criteria) this;
        }

        public Criteria andSchoolworkidIn(List<Integer> values) {
            addCriterion("schoolworkId in", values, "schoolworkid");
            return (Criteria) this;
        }

        public Criteria andSchoolworkidNotIn(List<Integer> values) {
            addCriterion("schoolworkId not in", values, "schoolworkid");
            return (Criteria) this;
        }

        public Criteria andSchoolworkidBetween(Integer value1, Integer value2) {
            addCriterion("schoolworkId between", value1, value2, "schoolworkid");
            return (Criteria) this;
        }

        public Criteria andSchoolworkidNotBetween(Integer value1, Integer value2) {
            addCriterion("schoolworkId not between", value1, value2, "schoolworkid");
            return (Criteria) this;
        }

        public Criteria andReleasetimeIsNull() {
            addCriterion("releaseTime is null");
            return (Criteria) this;
        }

        public Criteria andReleasetimeIsNotNull() {
            addCriterion("releaseTime is not null");
            return (Criteria) this;
        }

        public Criteria andReleasetimeEqualTo(String value) {
            addCriterion("releaseTime =", value, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeNotEqualTo(String value) {
            addCriterion("releaseTime <>", value, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeGreaterThan(String value) {
            addCriterion("releaseTime >", value, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeGreaterThanOrEqualTo(String value) {
            addCriterion("releaseTime >=", value, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeLessThan(String value) {
            addCriterion("releaseTime <", value, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeLessThanOrEqualTo(String value) {
            addCriterion("releaseTime <=", value, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeLike(String value) {
            addCriterion("releaseTime like", value, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeNotLike(String value) {
            addCriterion("releaseTime not like", value, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeIn(List<String> values) {
            addCriterion("releaseTime in", values, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeNotIn(List<String> values) {
            addCriterion("releaseTime not in", values, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeBetween(String value1, String value2) {
            addCriterion("releaseTime between", value1, value2, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeNotBetween(String value1, String value2) {
            addCriterion("releaseTime not between", value1, value2, "releasetime");
            return (Criteria) this;
        }

        public Criteria andHandovertimeIsNull() {
            addCriterion("handOverTime is null");
            return (Criteria) this;
        }

        public Criteria andHandovertimeIsNotNull() {
            addCriterion("handOverTime is not null");
            return (Criteria) this;
        }

        public Criteria andHandovertimeEqualTo(String value) {
            addCriterion("handOverTime =", value, "handovertime");
            return (Criteria) this;
        }

        public Criteria andHandovertimeNotEqualTo(String value) {
            addCriterion("handOverTime <>", value, "handovertime");
            return (Criteria) this;
        }

        public Criteria andHandovertimeGreaterThan(String value) {
            addCriterion("handOverTime >", value, "handovertime");
            return (Criteria) this;
        }

        public Criteria andHandovertimeGreaterThanOrEqualTo(String value) {
            addCriterion("handOverTime >=", value, "handovertime");
            return (Criteria) this;
        }

        public Criteria andHandovertimeLessThan(String value) {
            addCriterion("handOverTime <", value, "handovertime");
            return (Criteria) this;
        }

        public Criteria andHandovertimeLessThanOrEqualTo(String value) {
            addCriterion("handOverTime <=", value, "handovertime");
            return (Criteria) this;
        }

        public Criteria andHandovertimeLike(String value) {
            addCriterion("handOverTime like", value, "handovertime");
            return (Criteria) this;
        }

        public Criteria andHandovertimeNotLike(String value) {
            addCriterion("handOverTime not like", value, "handovertime");
            return (Criteria) this;
        }

        public Criteria andHandovertimeIn(List<String> values) {
            addCriterion("handOverTime in", values, "handovertime");
            return (Criteria) this;
        }

        public Criteria andHandovertimeNotIn(List<String> values) {
            addCriterion("handOverTime not in", values, "handovertime");
            return (Criteria) this;
        }

        public Criteria andHandovertimeBetween(String value1, String value2) {
            addCriterion("handOverTime between", value1, value2, "handovertime");
            return (Criteria) this;
        }

        public Criteria andHandovertimeNotBetween(String value1, String value2) {
            addCriterion("handOverTime not between", value1, value2, "handovertime");
            return (Criteria) this;
        }

        public Criteria andSchoolworkcontentIsNull() {
            addCriterion("schoolworkContent is null");
            return (Criteria) this;
        }

        public Criteria andSchoolworkcontentIsNotNull() {
            addCriterion("schoolworkContent is not null");
            return (Criteria) this;
        }

        public Criteria andSchoolworkcontentEqualTo(String value) {
            addCriterion("schoolworkContent =", value, "schoolworkcontent");
            return (Criteria) this;
        }

        public Criteria andSchoolworkcontentNotEqualTo(String value) {
            addCriterion("schoolworkContent <>", value, "schoolworkcontent");
            return (Criteria) this;
        }

        public Criteria andSchoolworkcontentGreaterThan(String value) {
            addCriterion("schoolworkContent >", value, "schoolworkcontent");
            return (Criteria) this;
        }

        public Criteria andSchoolworkcontentGreaterThanOrEqualTo(String value) {
            addCriterion("schoolworkContent >=", value, "schoolworkcontent");
            return (Criteria) this;
        }

        public Criteria andSchoolworkcontentLessThan(String value) {
            addCriterion("schoolworkContent <", value, "schoolworkcontent");
            return (Criteria) this;
        }

        public Criteria andSchoolworkcontentLessThanOrEqualTo(String value) {
            addCriterion("schoolworkContent <=", value, "schoolworkcontent");
            return (Criteria) this;
        }

        public Criteria andSchoolworkcontentLike(String value) {
            addCriterion("schoolworkContent like", value, "schoolworkcontent");
            return (Criteria) this;
        }

        public Criteria andSchoolworkcontentNotLike(String value) {
            addCriterion("schoolworkContent not like", value, "schoolworkcontent");
            return (Criteria) this;
        }

        public Criteria andSchoolworkcontentIn(List<String> values) {
            addCriterion("schoolworkContent in", values, "schoolworkcontent");
            return (Criteria) this;
        }

        public Criteria andSchoolworkcontentNotIn(List<String> values) {
            addCriterion("schoolworkContent not in", values, "schoolworkcontent");
            return (Criteria) this;
        }

        public Criteria andSchoolworkcontentBetween(String value1, String value2) {
            addCriterion("schoolworkContent between", value1, value2, "schoolworkcontent");
            return (Criteria) this;
        }

        public Criteria andSchoolworkcontentNotBetween(String value1, String value2) {
            addCriterion("schoolworkContent not between", value1, value2, "schoolworkcontent");
            return (Criteria) this;
        }

        public Criteria andSchoolworkurlIsNull() {
            addCriterion("schoolworkURL is null");
            return (Criteria) this;
        }

        public Criteria andSchoolworkurlIsNotNull() {
            addCriterion("schoolworkURL is not null");
            return (Criteria) this;
        }

        public Criteria andSchoolworkurlEqualTo(String value) {
            addCriterion("schoolworkURL =", value, "schoolworkurl");
            return (Criteria) this;
        }

        public Criteria andSchoolworkurlNotEqualTo(String value) {
            addCriterion("schoolworkURL <>", value, "schoolworkurl");
            return (Criteria) this;
        }

        public Criteria andSchoolworkurlGreaterThan(String value) {
            addCriterion("schoolworkURL >", value, "schoolworkurl");
            return (Criteria) this;
        }

        public Criteria andSchoolworkurlGreaterThanOrEqualTo(String value) {
            addCriterion("schoolworkURL >=", value, "schoolworkurl");
            return (Criteria) this;
        }

        public Criteria andSchoolworkurlLessThan(String value) {
            addCriterion("schoolworkURL <", value, "schoolworkurl");
            return (Criteria) this;
        }

        public Criteria andSchoolworkurlLessThanOrEqualTo(String value) {
            addCriterion("schoolworkURL <=", value, "schoolworkurl");
            return (Criteria) this;
        }

        public Criteria andSchoolworkurlLike(String value) {
            addCriterion("schoolworkURL like", value, "schoolworkurl");
            return (Criteria) this;
        }

        public Criteria andSchoolworkurlNotLike(String value) {
            addCriterion("schoolworkURL not like", value, "schoolworkurl");
            return (Criteria) this;
        }

        public Criteria andSchoolworkurlIn(List<String> values) {
            addCriterion("schoolworkURL in", values, "schoolworkurl");
            return (Criteria) this;
        }

        public Criteria andSchoolworkurlNotIn(List<String> values) {
            addCriterion("schoolworkURL not in", values, "schoolworkurl");
            return (Criteria) this;
        }

        public Criteria andSchoolworkurlBetween(String value1, String value2) {
            addCriterion("schoolworkURL between", value1, value2, "schoolworkurl");
            return (Criteria) this;
        }

        public Criteria andSchoolworkurlNotBetween(String value1, String value2) {
            addCriterion("schoolworkURL not between", value1, value2, "schoolworkurl");
            return (Criteria) this;
        }

        public Criteria andTeacheridIsNull() {
            addCriterion("teacherId is null");
            return (Criteria) this;
        }

        public Criteria andTeacheridIsNotNull() {
            addCriterion("teacherId is not null");
            return (Criteria) this;
        }

        public Criteria andTeacheridEqualTo(String value) {
            addCriterion("teacherId =", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotEqualTo(String value) {
            addCriterion("teacherId <>", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridGreaterThan(String value) {
            addCriterion("teacherId >", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridGreaterThanOrEqualTo(String value) {
            addCriterion("teacherId >=", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridLessThan(String value) {
            addCriterion("teacherId <", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridLessThanOrEqualTo(String value) {
            addCriterion("teacherId <=", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridLike(String value) {
            addCriterion("teacherId like", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotLike(String value) {
            addCriterion("teacherId not like", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridIn(List<String> values) {
            addCriterion("teacherId in", values, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotIn(List<String> values) {
            addCriterion("teacherId not in", values, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridBetween(String value1, String value2) {
            addCriterion("teacherId between", value1, value2, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotBetween(String value1, String value2) {
            addCriterion("teacherId not between", value1, value2, "teacherid");
            return (Criteria) this;
        }

        public Criteria andCourseskuidIsNull() {
            addCriterion("courseSKUId is null");
            return (Criteria) this;
        }

        public Criteria andCourseskuidIsNotNull() {
            addCriterion("courseSKUId is not null");
            return (Criteria) this;
        }

        public Criteria andCourseskuidEqualTo(Integer value) {
            addCriterion("courseSKUId =", value, "courseskuid");
            return (Criteria) this;
        }

        public Criteria andCourseskuidNotEqualTo(Integer value) {
            addCriterion("courseSKUId <>", value, "courseskuid");
            return (Criteria) this;
        }

        public Criteria andCourseskuidGreaterThan(Integer value) {
            addCriterion("courseSKUId >", value, "courseskuid");
            return (Criteria) this;
        }

        public Criteria andCourseskuidGreaterThanOrEqualTo(Integer value) {
            addCriterion("courseSKUId >=", value, "courseskuid");
            return (Criteria) this;
        }

        public Criteria andCourseskuidLessThan(Integer value) {
            addCriterion("courseSKUId <", value, "courseskuid");
            return (Criteria) this;
        }

        public Criteria andCourseskuidLessThanOrEqualTo(Integer value) {
            addCriterion("courseSKUId <=", value, "courseskuid");
            return (Criteria) this;
        }

        public Criteria andCourseskuidIn(List<Integer> values) {
            addCriterion("courseSKUId in", values, "courseskuid");
            return (Criteria) this;
        }

        public Criteria andCourseskuidNotIn(List<Integer> values) {
            addCriterion("courseSKUId not in", values, "courseskuid");
            return (Criteria) this;
        }

        public Criteria andCourseskuidBetween(Integer value1, Integer value2) {
            addCriterion("courseSKUId between", value1, value2, "courseskuid");
            return (Criteria) this;
        }

        public Criteria andCourseskuidNotBetween(Integer value1, Integer value2) {
            addCriterion("courseSKUId not between", value1, value2, "courseskuid");
            return (Criteria) this;
        }

        public Criteria andWorknameIsNull() {
            addCriterion("workName is null");
            return (Criteria) this;
        }

        public Criteria andWorknameIsNotNull() {
            addCriterion("workName is not null");
            return (Criteria) this;
        }

        public Criteria andWorknameEqualTo(String value) {
            addCriterion("workName =", value, "workname");
            return (Criteria) this;
        }

        public Criteria andWorknameNotEqualTo(String value) {
            addCriterion("workName <>", value, "workname");
            return (Criteria) this;
        }

        public Criteria andWorknameGreaterThan(String value) {
            addCriterion("workName >", value, "workname");
            return (Criteria) this;
        }

        public Criteria andWorknameGreaterThanOrEqualTo(String value) {
            addCriterion("workName >=", value, "workname");
            return (Criteria) this;
        }

        public Criteria andWorknameLessThan(String value) {
            addCriterion("workName <", value, "workname");
            return (Criteria) this;
        }

        public Criteria andWorknameLessThanOrEqualTo(String value) {
            addCriterion("workName <=", value, "workname");
            return (Criteria) this;
        }

        public Criteria andWorknameLike(String value) {
            addCriterion("workName like", value, "workname");
            return (Criteria) this;
        }

        public Criteria andWorknameNotLike(String value) {
            addCriterion("workName not like", value, "workname");
            return (Criteria) this;
        }

        public Criteria andWorknameIn(List<String> values) {
            addCriterion("workName in", values, "workname");
            return (Criteria) this;
        }

        public Criteria andWorknameNotIn(List<String> values) {
            addCriterion("workName not in", values, "workname");
            return (Criteria) this;
        }

        public Criteria andWorknameBetween(String value1, String value2) {
            addCriterion("workName between", value1, value2, "workname");
            return (Criteria) this;
        }

        public Criteria andWorknameNotBetween(String value1, String value2) {
            addCriterion("workName not between", value1, value2, "workname");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}